﻿namespace DeltaGroup.WheelOfJeopardy.Model
{
    using System.Collections.Generic;
    using System.Xml.Serialization;

    [XmlRoot]
    public class ChallengeSet
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="ChallengeSet"/> class.
        /// </summary>
        public ChallengeSet()
        {
            JeopardyCategories = new List<Category>();
            DoubleJeopardyCategories = new List<Category>();
            FinalJeopardyChallenge = new Challenge();
        }

        #endregion Constructors

        #region Properties

        /// <summary>
        /// Gets or sets the double jeopardy categories.
        /// </summary>
        /// <value>The double jeopardy categories.</value>
        [XmlElement(ElementName = "DoubleJeopardyCategory")]
        public List<Category> DoubleJeopardyCategories
        {
            get; set;
        }

        /// <summary>
        /// Gets or sets the final jeopardy challenge.
        /// </summary>
        /// <value>The final jeopardy challenge.</value>
        [XmlElement]
        public Challenge FinalJeopardyChallenge
        {
            get; set;
        }

        /// <summary>
        /// Gets or sets the jeopardy categories.
        /// </summary>
        /// <value>The jeopardy categories.</value>
        [XmlElement(ElementName = "JeopardyCategory")]
        public List<Category> JeopardyCategories
        {
            get; set;
        }

        #endregion Properties
    }
}